package com.ls.service.impl;

import com.ls.dao.IndustryDao;
import com.ls.entity.Industry;
import com.ls.entity.JsonResult;
import com.ls.service.IIndustryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("industryService")
public class IndustryServiceImpl implements IIndustryService {
	@Autowired
	private IndustryDao dao;
	public JsonResult<List<Industry>> findIndustry() {
		JsonResult<List<Industry>> result = new JsonResult<List<Industry>>();
		List<Industry> list = dao.findIndustry();
		if (list != null) {
			result.setStatus(0);
			result.setData(list);
			return result;
		}
		result.setStatus(1);
		result.setMsg("查询类industry失败");
		return result;
	}

}
